<template>
  <div>
    <div class="header">
      <slot></slot>
      
      <p class="title">鼠绘漫画</p>
    </div>
    <div class="tabbar">
      <ul>
        <li v-for="(t,index) in this.tabList">
          <router-link :to="t.path">
            <i :class="t.ion"></i>
            <p>{{t.text}}</p>
          </router-link>
        </li>
      </ul>
    </div>
  </div>
</template>
<script>
  export default {
    data() {
      return {
        tabList: [{
            text: "首页",
            ion: "fa fa-home",
            path: "/index"
          },
          {
            text: "订阅",
            ion: "fa fa-bookmark-o",
            path: "/collect"
          },
          {
            text: "圈子",
            ion: "fa fa-smile-o",
            path: "/circle"
          },
          {
            text: "我的",
            ion: "fa fa-user-o",
            path: "/users"
          }
        ]
      }
    }
  }

</script>
<style scoped>
  .is-active {
    color: #f66a00;
  }
  
  .title {
    text-align: center;
    font-size: 0.5rem;
  }
  
  .header {
    background-color: #35495e;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    height: 44px;
    line-height: 44px;
    z-index: 10;
  }
  
  .tabbar {
    width: 100%;
    height: 49px;
    position: fixed;
    bottom: 0;
    z-index: 10;
    text-align: center;
    background-color: #f7f7fa;
    border-top: 1px solid #dcdbe0;
  }
  
  .tabbar li {
    float: left;
    width: 25%;
    padding: 5px 0;
  }
  
  .tabbar li i {
    font-weight: normal;
    font-size: 0.6rem;
  }

</style>
